<template>
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide" v-for="(item,index) in items" :key=index>
                <img :src="item.pic" :class="myClass">
            </div>
        </div>
        <div class="swiper-pagination"></div>
    </div>
</template>

<script>
export default {
    data() {
        return {       
        }
    },
    props: {
        items: {
            required: true,
        },
        // showPagination: Boolean,
        myClass:{
            required: true,
        }
    },
    methods: {
    },
    mounted() {
        setTimeout(function () {
            var mySwiper = new Swiper('.swiper-container', {
                autoplay: 3000,
                pagination: '.swiper-pagination',
                loop: true,
                observer: true,
                observeParents: true,
            })
        }, 100);
    }
}
</script>

<style scoped>

</style>